<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>员工构成</title>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="./plugins/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="./css/main.css">
</head>

<body>
  <div class="content">
    <h5 class="content-title">浦发银行</h5>
    <div class="box">
      <div class="box-header">
        <div class="header-title">员工构成</div>
      </div>
      <div class="box-body">
        <div class="tabs-wrap clearfix">
          <ul class="nav-tabs clearfix" style="float:right">
            <li class="nav-item active">
              专业构成
            </li>
            <li class="nav-item">
              学历构成
            </li>
          </ul>
        </div>
        <div class="chart" id="bar1" style="height:300px;"></div>
      </div>
    </div>
    <div class="row">
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">人均创收</div>
          </div>
          <div class="box-body">
            <div class="chart" id="chart2" style="height:220px;"></div>
          </div>
        </div>
      </div>
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">人均创利</div>
          </div>
          <div class="box-body">
            <div class="chart" id="chart3" style="height:220px;"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class='col'>
        <div>
          <div class="box">
            <div class="box-header">
              <div class="header-title">营业收入vs员工收入</div>
            </div>
            <div class="box-body">
              <div class="chart" id="chart4" style="height:220px;"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-ttiel">净利润vs员工人数</div>
          </div>
          <div class="box-body">
            <div class="chart" id="chart5" style="height:220px;"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="plugins/jquery/jquery.min.js"></script>
  <script src="js/echarts.js"></script>
  <script>
    $(function () {
      // 员工构成
      $('.nav-tabs li').on('click', function () {
        $(this).addClass('active').siblings().removeClass('active')
      })
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('bar1'))
      var xData = ['2021-01', '2021-02', '2021-03', '2021-04', '2021-05', '2021-06', '2021-07', '2021-08',
        '2021-09', '2021-10', '2021-11', '2021-12',
      ]
      var option = {
        color: colorList,
        legend: {
          icon: 'circle',
          bottom: '3%',
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '40',
          right: '40',
          top: '10%',
          bottom: '20%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          // boundaryGap: false
        }],
        yAxis: [{
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "技术",
          "type": "bar",
          "stack": "1",
          "barWidth": "15",
          "data": [60, 20, 10, 24, 7, 4, 50, 80, 100, 200, 210, 300],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }, {
          "name": "综合管理",
          "type": "bar",
          "stack": "1",
          "barWidth": "15",
          "data": [20, 200, 10, 40, 7, 20, 50, 20, 10, 20, 21, 30],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }, {
          "name": "其他专业",
          "type": "bar",
          "stack": "1",
          "barWidth": "15",
          "data": [20, 200, 10, 40, 7, 20, 50, 20, 10, 20, 21, 30],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })

    $(function () {
      // 人均创收
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('chart2'))
      var xData = ['2020/01', '2020/02', '2020/03', '2020/04', '2020/05', '2020/06']
      var option = {
        color: colorList,
        legend: {
          icon: 'circle',
          bottom: '3%',
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '50',
          right: '40',
          top: '20%',
          bottom: '30%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '人均创收（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '人均薪酬（万元）',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "人均创收",
          "type": "bar",
          "barWidth": "15",
          "data": [600, 200, 100, 240, 70, 40],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }, {
          name: '人均薪酬',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [4, 10, 15, 5, 7, 20],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            // color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })

    $(function () {
      // 人均创利
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('chart3'))
      var xData = ['2020/01', '2020/02', '2020/03', '2020/04', '2020/05', '2020/06']
      var option = {
        color: colorList,
        legend: {
          icon: 'circle',
          bottom: '3%',
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '50',
          right: '40',
          top: '20%',
          bottom: '30%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '人均创收（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '人均薪酬（万元）',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "人均创收",
          "type": "bar",
          "barWidth": "15",
          "data": [600, 200, 100, 240, 70, 40],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color:''
            }
          }
        }, {
          name: '人均薪酬',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [4, 10, 15, 5, 7, 20],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            // color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })

    $(function () {
      // 营业总收入 vs 员工人数
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('chart4'))
      var xData = ['2018', '2019', '2020', '2021']
      var option = {
        color: colorList,
        legend: {
          icon: 'circle',
          bottom: '3%',
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '80',
          right: '80',
          top: '20%',
          bottom: '30%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '营业总收入（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '员工人数',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "营业总收入",
          "type": "line",
          "barWidth": "15",
          "data": [170000, 2000000, 300000, 4000000],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }, {
          name: '员工人数',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [55000, 60000, 65000, 70000],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            // color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })

    $(function () {
      // 净利润 vs 员工人数
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('chart5'))
      var xData = ['2018', '2019', '2020', '2021']
      var option = {
        color: colorList,
        legend: {
          icon: 'circle',
          bottom: '3%',
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '80',
          right: '80',
          top: '20%',
          bottom: '30%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '净利润（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '员工人数',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "净利润",
          "type": "line",
          "barWidth": "15",
          "data": [170000, 2000000, 300000, 4000000],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              // color: ''
            }
          }
        }, {
          name: '员工人数',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [55000, 60000, 65000, 70000],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            // color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })
  </script>
</body>

</html>